package com.jia.order.entity;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单(Order)表实体类
 *
 * @author makejava
 * @since 2025-07-28 17:42:53
 */
@Getter
@Setter
@SuppressWarnings("serial")
public class Order extends Model<Order> {
    //id
    private Long id;
    //member_id
    private Long memberId;
    //订单号
    private String orderSn;
    //使用的优惠券
    private Long couponId;
    //create_time
    private Date createTime;
    //用户名
    private String memberUsername;
    //订单总额
    private Double totalAmount;
    //应付总额
    private Double payAmount;
    //运费金额
    private Double freightAmount;
    //促销优化金额（促销价、满减、阶梯价）
    private Double promotionAmount;
    //积分抵扣金额
    private Double integrationAmount;
    //优惠券抵扣金额
    private Double couponAmount;
    //后台调整订单使用的折扣金额
    private Double discountAmount;
    //支付方式【1->支付宝；2->微信；3->银联； 4->货到付款；】
    private Integer payType;
    //订单来源[0->PC订单；1->app订单]
    private Integer sourceType;
    //订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】
    private Integer status;
    //物流公司(配送方式)
    private String deliveryCompany;
    //物流单号
    private String deliverySn;
    //自动确认时间（天）
    private Integer autoConfirmDay;
    //可以获得的积分
    private Integer integration;
    //可以获得的成长值
    private Integer growth;
    //发票类型[0->不开发票；1->电子发票；2->纸质发票]
    private Integer billType;
    //发票抬头
    private String billHeader;
    //发票内容
    private String billContent;
    //收票人电话
    private String billReceiverPhone;
    //收票人邮箱
    private String billReceiverEmail;
    //收货人姓名
    private String receiverName;
    //收货人电话
    private String receiverPhone;
    //收货人邮编
    private String receiverPostCode;
    //省份/直辖市
    private String receiverProvince;
    //城市
    private String receiverCity;
    //区
    private String receiverRegion;
    //详细地址
    private String receiverDetailAddress;
    //订单备注
    private String note;
    //确认收货状态[0->未确认；1->已确认]
    private Integer confirmStatus;
    //删除状态【0->未删除；1->已删除】
    private Integer deleteStatus;
    //下单时使用的积分
    private Integer useIntegration;
    //支付时间
    private Date paymentTime;
    //发货时间
    private Date deliveryTime;
    //确认收货时间
    private Date receiveTime;
    //评价时间
    private Date commentTime;
    //修改时间
    private Date modifyTime;

}

